﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using EZCRS.HCMS.Web;

namespace EZCRS.HCMS.Web.manage.booklog
{
    public partial class orderstatusall : ManageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            CheckModule(50);

            AjaxPro.Utility.RegisterTypeForAjax(typeof(EZCRS.HCMS.myajax.CardUserLog));

            //处理不同语言的日期选择控件
            string calender = "calendar-zh.js";
            if (base.CurrentLanguage == "en-US")
                calender = "calendar-en.js";
            Page.ClientScript.RegisterClientScriptBlock(typeof(String), "calenders", "<script type=\"text/javascript\" src=\"../../Common/Calendar/lang/" + calender + "\"></script>");


            if (!Page.IsPostBack)
            {
                ordersort.DataSource = DataAcl.Common.CheckInStatus();
                ordersort.DataTextField = "Value";
                ordersort.DataValueField = "Key";
                ordersort.DataBind();

                ddlsource.DataSource = DataAcl.Common.BookFrom();
                ddlsource.DataTextField = "Value";
                ddlsource.DataValueField = "Key";
                ddlsource.DataBind();
                ddlsource.SelectedValue = "0";

                bstart.Value = DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd");
                bend.Value = DateTime.Now.ToString("yyyy-MM-dd");
            }
        }
    }
}
